package org.jeecg.modules.demo.integrityArchive.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.system.vo.SelectTreeModel;
import org.jeecg.modules.demo.integrityArchive.entity.IntegrityArchive;

import java.util.List;

/**
 * @Description: 廉洁档案表
 * @Author: jeecg-boot
 * @Date:   2025-04-08
 * @Version: V1.0
 */
public interface IIntegrityArchiveService extends IService<IntegrityArchive> {

    /**根节点父ID的值*/
    public static final String ROOT_PID_VALUE = "0";

    /**树节点有子节点状态值*/
    public static final String HASCHILD = "1";

    /**树节点无子节点状态值*/
    public static final String NOCHILD = "0";




    String uploadSceneFile( IntegrityArchive integrityArchive) throws Exception;


    List<SelectTreeModel> queryListByPid(String pid);

    List<SelectTreeModel> queryListByCode(String pcode);

    void addIntegrityArchive(IntegrityArchive integrityArchive);

    void updateIntegrityArchive(IntegrityArchive integrityArchive);

    void removeIntegrityArchive(String id);

    void removeAll(List<String> ids);

    IntegrityArchive getByPid(String id);

    List<IntegrityArchive> queryByPid(String id);
}
